package com.yongz.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @TableName stu
 */
@TableName(value ="stu")
@Data
public class Stu implements Serializable {
    private Integer id;

    private String name;

    private Integer age;

    private String email;

    private String classroom;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "Stu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", classroom='" + classroom + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Stu stu = (Stu) o;
        return Objects.equals(id, stu.id) && Objects.equals(name, stu.name) && Objects.equals(age, stu.age) && Objects.equals(email, stu.email) && Objects.equals(classroom, stu.classroom);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, age, email, classroom);
    }
}